package com.yhhvip.lottery.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;


@Data
@ToString
public class ReqUserAddress{

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", example = "100", required = true, position = 1)
    private long userId;

    @NotNull(message = "活动id不能为空")
    @ApiModelProperty(value = "活动id", example = "100", required = true, position = 1)
    private long activityId;


    @NotNull(message = "用户地址不能为空")
    @ApiModelProperty(value = "用户地址", example = "广东省深圳市南山村", required = true, position = 2)
    private String address;
}